package com.yunfei.yunhetong.elecContBeneAcctDtl.bo;
import com.yunfei.yunhetong.elecContBeneAcctDtl.entity.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename ELEC_CONT_BENE_ACCT_DTL
*@author zhengyunfei
*@createDate Wed Aug 28 17:25:20 CST 2019
*/ 
public class ElecContBeneAcctDtlBo implements java.io.Serializable{
	private String cReserveno;
	private String contractId;
	private String contractNum;
	private String insertDate;
	private String createDate;
	private String creatorId;
	private String bankNo;
	private String subbankNm1;
	private String subbankNm2;
	private String nameinbank;
	private String acctNo;
	private String contractSts;
	private String emplOperDt;
	private String effeFlg;
	private String cancDt;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		return curNo;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCReserveno(String cReserveno){
		this.cReserveno=cReserveno;
	}
	public String getCReserveno(){
		return cReserveno;
	}
	public void setContractId(String contractId){
		this.contractId=contractId;
	}
	public String getContractId(){
		return contractId;
	}
	public void setContractNum(String contractNum){
		this.contractNum=contractNum;
	}
	public String getContractNum(){
		return contractNum;
	}
	public void setInsertDate(String insertDate){
		this.insertDate=insertDate;
	}
	public String getInsertDate(){
		return insertDate;
	}
	public void setCreateDate(String createDate){
		this.createDate=createDate;
	}
	public String getCreateDate(){
		return createDate;
	}
	public void setCreatorId(String creatorId){
		this.creatorId=creatorId;
	}
	public String getCreatorId(){
		return creatorId;
	}
	public void setBankNo(String bankNo){
		this.bankNo=bankNo;
	}
	public String getBankNo(){
		return bankNo;
	}
	public void setSubbankNm1(String subbankNm1){
		this.subbankNm1=subbankNm1;
	}
	public String getSubbankNm1(){
		return subbankNm1;
	}
	public void setSubbankNm2(String subbankNm2){
		this.subbankNm2=subbankNm2;
	}
	public String getSubbankNm2(){
		return subbankNm2;
	}
	public void setNameinbank(String nameinbank){
		this.nameinbank=nameinbank;
	}
	public String getNameinbank(){
		return nameinbank;
	}
	public void setAcctNo(String acctNo){
		this.acctNo=acctNo;
	}
	public String getAcctNo(){
		return acctNo;
	}
	public void setContractSts(String contractSts){
		this.contractSts=contractSts;
	}
	public String getContractSts(){
		return contractSts;
	}
	public void setEmplOperDt(String emplOperDt){
		this.emplOperDt=emplOperDt;
	}
	public String getEmplOperDt(){
		return emplOperDt;
	}
	public void setEffeFlg(String effeFlg){
		this.effeFlg=effeFlg;
	}
	public String getEffeFlg(){
		return effeFlg;
	}
	public void setCancDt(String cancDt){
		this.cancDt=cancDt;
	}
	public String getCancDt(){
		return cancDt;
	}
	public static ElecContBeneAcctDtlEntity boToEntity(ElecContBeneAcctDtlBo bo){
		ElecContBeneAcctDtlEntity entity=new ElecContBeneAcctDtlEntity();
		entity.setCReserveno(bo.getCReserveno());
		entity.setContractId(bo.getContractId());
		entity.setContractNum(bo.getContractNum());
		entity.setInsertDate(bo.getInsertDate());
		entity.setCreateDate(bo.getCreateDate());
		entity.setCreatorId(bo.getCreatorId());
		entity.setBankNo(bo.getBankNo());
		entity.setSubbankNm1(bo.getSubbankNm1());
		entity.setSubbankNm2(bo.getSubbankNm2());
		entity.setNameinbank(bo.getNameinbank());
		entity.setAcctNo(bo.getAcctNo());
		entity.setContractSts(bo.getContractSts());
		entity.setEmplOperDt(bo.getEmplOperDt());
		entity.setEffeFlg(bo.getEffeFlg());
		entity.setCancDt(bo.getCancDt());
		return entity;
	}
	public static ElecContBeneAcctDtlBo entityToBo(ElecContBeneAcctDtlEntity bo){
		ElecContBeneAcctDtlBo entity=new ElecContBeneAcctDtlBo();
		entity.setCReserveno(bo.getCReserveno());
		entity.setContractId(bo.getContractId());
		entity.setContractNum(bo.getContractNum());
		entity.setInsertDate(bo.getInsertDate());
		entity.setCreateDate(bo.getCreateDate());
		entity.setCreatorId(bo.getCreatorId());
		entity.setBankNo(bo.getBankNo());
		entity.setSubbankNm1(bo.getSubbankNm1());
		entity.setSubbankNm2(bo.getSubbankNm2());
		entity.setNameinbank(bo.getNameinbank());
		entity.setAcctNo(bo.getAcctNo());
		entity.setContractSts(bo.getContractSts());
		entity.setEmplOperDt(bo.getEmplOperDt());
		entity.setEffeFlg(bo.getEffeFlg());
		entity.setCancDt(bo.getCancDt());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("cReserveno")){
					result="C_RESERVENO";
				}
				if(field.equals("contractId")){
					result="CONTRACT_ID";
				}
				if(field.equals("contractNum")){
					result="CONTRACT_NUM";
				}
				if(field.equals("insertDate")){
					result="INSERT_DATE";
				}
				if(field.equals("createDate")){
					result="CREATE_DATE";
				}
				if(field.equals("creatorId")){
					result="CREATOR_ID";
				}
				if(field.equals("bankNo")){
					result="BANK_NO";
				}
				if(field.equals("subbankNm1")){
					result="SUBBANK_NM1";
				}
				if(field.equals("subbankNm2")){
					result="SUBBANK_NM2";
				}
				if(field.equals("nameinbank")){
					result="NAMEINBANK";
				}
				if(field.equals("acctNo")){
					result="ACCT_NO";
				}
				if(field.equals("contractSts")){
					result="CONTRACT_STS";
				}
				if(field.equals("emplOperDt")){
					result="EMPL_OPER_DT";
				}
				if(field.equals("effeFlg")){
					result="EFFE_FLG";
				}
				if(field.equals("cancDt")){
					result="CANC_DT";
				}
		}
		return result;
	}
}

